package com.eslag.shortlink.project.service;

import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;

/**
 * URL标题接口层
 */
public interface UrlTitleService {
    /**
     * 根据URL获取标题
     *
     * @param url 目标网站路径
     * @return 网站标题
     */
    String getTitleByUrl(@RequestParam("url") String url) throws IOException;
}
